package main
import "time"
import "fmt"
func main() {
	Now := time.Now()
	fmt.Println(Now.Year())
	fmt.Println(Now.Month())
	fmt.Println(Now.Day())
		fmt.Println(Now.Hour())
			//获取时间戳
			fmt.Println(Now.Unix())
	fmt.Println(Now.Format("2006-01-02 15:04:05"))
	fmt.Println(Now)
}